home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / SHARED.DIR / 01938_Script_Global handlers < prev    next >
Text File  |  1995-09-13  |  12KB  |  544 lines

  1. global gWhatMovie, gNewMarker
  2.  
  3. On VBasicFacts
  4.   --goes to Viking Basic Facts Movie
  5.   TurnOffPuppets
  6.   go movie "VBFACTS"
  7.   abort
  8. end
  9.  
  10. On ABasicFacts
  11.   --goes to Aztec Basic Facts Movie
  12.   TurnOffPuppets
  13.   go movie "ABFACTS"
  14.   abort
  15. end
  16.  
  17. On EBasicFacts
  18.   --goes to Egypt Basic Facts Movie
  19.   TurnOffPuppets
  20.   go movie "EBFACTS"
  21.   abort
  22. end
  23.  
  24. on VGlossary
  25.   --goes to Viking Glossary Movie
  26.   TurnOffPuppets
  27.   go movie "VGloss"
  28.   abort
  29. end
  30.  
  31. on AGlossary
  32.   --goes to Aztec Glossary Movie
  33.   TurnOffPuppets
  34.   go movie "AGloss"
  35.   abort
  36. end
  37.  
  38. on EGlossary
  39.   --goes to Egypt Glossary Movie
  40.   TurnOffPuppets
  41.   go movie "EGloss"
  42.   abort
  43. end
  44.  
  45. on VIndex
  46.   --goes to Viking Index Movie
  47.   TurnOffPuppets
  48.   go movie "VIndex"
  49.   abort
  50. end
  51.  
  52. on AIndex
  53.   --goes to Aztec Index Movie
  54.   TurnOffPuppets
  55.   go movie "AIndex"
  56.   abort
  57. end
  58.  
  59. on EIndex
  60.   --goes to Egypt Index Movie
  61.   TurnOffPuppets
  62.   go movie "EIndex"
  63.   abort
  64. end
  65.  
  66. on VBegin
  67.   --goes to Viking Begin Your Life Movie
  68.   TurnOffPuppets
  69.   go movie "VPAN"
  70.   abort
  71. end
  72.  
  73. on ABegin
  74.   --goes to Aztec Begin Your Life Movie
  75.   TurnOffPuppets
  76.   go movie "APAN"
  77.   abort
  78. end
  79.  
  80. on EBegin
  81.   --goes to Egypt Begin Your Life Movie
  82.   TurnOffPuppets
  83.   go movie "EPAN"
  84.   abort
  85. end
  86.  
  87. on Table
  88.   --goes to Table of Contents if you are already in the movie containing the TOC
  89.   TurnOffPuppets
  90.   go "TableOfContents"
  91.   abort
  92. end 
  93.  
  94. on TableCross
  95.   --goes to Table of Contents if you are not in the movie containing the TOC
  96.   --and gWhatmovie is the movie you want to go to
  97.   TurnOffPuppets
  98.   go to frame "TableOfContents" of movie gWhatMovie
  99.   abort
  100. end 
  101.  
  102. on VGame
  103.   TurnOffPuppets 1
  104.   GlobalKill
  105.   if not(the moviename contains "GAME") then put the MovieName into gWhatMovie
  106.   go movie "VGAME"
  107.   abort
  108. end 
  109.  
  110. on EGame
  111.   --goes to Egypt Game Movie
  112.   TurnOffPuppets 1
  113.   GlobalKill
  114.   if not(the moviename contains "GAME") then put the MovieName into gWhatMovie
  115.   go movie "EGAME"
  116.   abort
  117. end 
  118.  
  119. on AGame
  120.   --goes to Aztec Game Movie
  121.   TurnOffPuppets 1
  122.   GlobalKill
  123.   if not(the moviename contains "GAME") then put the MovieName into gWhatMovie
  124.   go movie "AGAME"
  125.   abort
  126. end 
  127.  
  128. on Quitit
  129.   TurnOffPuppets
  130.   puppetsound "Quit HWS.AIFF"
  131.   updatestage
  132.   GlobalKill
  133.   put the MovieName into gWhatMovie
  134.   go movie "FQUIT"
  135.   abort
  136. end 
  137.  
  138.  
  139. on YourFamily
  140.   --goes to Your Family if you are already in the correct movie
  141.   TurnOffPuppets
  142.   go "YourFamily"
  143.   abort
  144. end
  145.  
  146. on YourFamilyCross
  147.   --goes to Your Family if you are not already in the correct movie
  148.   --and gWhatmovie is the movie you want to go to
  149.   TurnOffPuppets
  150.   go to frame "YourFamily" of movie gWhatMovie
  151.   abort
  152. end
  153.  
  154. on Town
  155.   --goes to "Life in a Town" or "Living in a Town" if you are already in the correct movie
  156.   TurnOffPuppets
  157.   go "Town"
  158.   abort
  159. end
  160.  
  161. on TownCross
  162.   --goes to "Life in a Town" or "Living in a Town" if you are not already in the correct movie
  163.   --and gWhatmovie is the movie you want to go to
  164.   TurnOffPuppets
  165.   go to frame "Town" of movie gWhatMovie
  166.   abort
  167. end
  168.  
  169. on Careers
  170.   --goes to "Careers" or "Raiders" if you are already in the correct movie
  171.   TurnOffPuppets
  172.   go "Careers"
  173.   abort
  174. end
  175.  
  176. on CareersCross
  177.   --goes to "Careers" or "Raiders" if you are not already in the correct movie
  178.   --and gWhatmovie is the movie you want to go to
  179.   TurnOffPuppets
  180.   go to frame "Careers" of movie gWhatMovie
  181.   abort
  182. end
  183.  
  184. on Entertainment
  185.   TurnOffPuppets
  186.   go "Entertainment"
  187.   abort
  188. end
  189.  
  190. on EntertainmentCross
  191.   TurnOffPuppets
  192.   go to frame "Entertainment" of movie gWhatMovie
  193.   abort
  194. end
  195.  
  196. on YourHome
  197.   TurnOffPuppets
  198.   go "YourHome"
  199.   abort
  200. end
  201.  
  202. on YourHomeCross
  203.   TurnOffPuppets
  204.   go to frame "YourHome" of movie gWhatMovie
  205.   abort
  206. end
  207.  
  208. on OnTheRiver
  209.   --goes to "On the River" or "Ships" if you are already in the correct movie
  210.   TurnOffPuppets
  211.   go "OnTheRiver"
  212.   abort
  213. end
  214.  
  215. on OnTheRiverCross
  216.   --goes to "On the River" or "Ships" if you are not already in the correct movie
  217.   --and gWhatmovie is the movie you want to go to
  218.   TurnOffPuppets
  219.   go to frame "OnTheRiver" of movie gWhatMovie
  220.   abort
  221. end
  222.  
  223. on pharoahs
  224.   --goes to "Pharaohs" or "Right and Wrong" or "Government" if you are already in the correct movie
  225.   TurnOffPuppets
  226.   go "pharoahs"
  227.   abort
  228. end
  229.  
  230. on pharoahsCross
  231.   --goes to "Pharaohs" or "Right and Wrong" or "Government" if you are not ¼
  232.     already in the correct movie
  233.   --and gWhatmovie is the movie you want to go to
  234.   TurnOffPuppets
  235.   go to frame "pharoahs" of movie gWhatMovie
  236.   abort
  237. end
  238.  
  239. on Sickness
  240.   --goes to "Sickness & Health" or "Your Health" if you are already in the correct movie
  241.   TurnOffPuppets
  242.   go "Sickness"
  243.   abort
  244. end
  245.  
  246. on SicknessCross
  247.   --goes to "Sickness & Health" or "Your Health" if you are not already in the correct movie
  248.   --and gWhatmovie is the movie you want to go to
  249.   TurnOffPuppets
  250.   go to frame "Sickness" of movie gWhatMovie
  251.   abort
  252. end
  253.  
  254. on Food
  255.   --goes to "Food & Drink" or "Food" or "Mealtimes" if you are already in the correct movie
  256.   TurnOffPuppets
  257.   go "Food"
  258.   abort
  259. end
  260.  
  261. on FoodCross
  262.   --goes to "Food & Drink" or "Food" or "Mealtimes" if you are not already in the correct movie
  263.   --and gWhatmovie is the movie you want to go to
  264.   TurnOffPuppets
  265.   go to frame "Food" of movie gWhatMovie
  266.   abort
  267. end
  268.  
  269. on LivingFarmer
  270.   --goes to "Living as a Farmer" or "Farming in Iceland" or "Farming the Land" ¼
  271.     if you are already in the correct movie
  272.   TurnOffPuppets
  273.   go "LivingFarmer"
  274.   abort
  275. end
  276.  
  277. on LivingFarmerCross
  278.   --goes to "Living as a Farmer" or "Farming in Iceland" or "Farming the Land" ¼
  279.     if you are not already in the correct movie
  280.   --and gWhatmovie is the movie you want to go to
  281.   TurnOffPuppets
  282.   go to frame "LivingFarmer" of movie gWhatMovie
  283.   abort
  284. end
  285.  
  286. on travelling
  287.   --goes to "Traveling" if you are already in the correct movie
  288.   TurnOffPuppets
  289.   go "travelling"
  290.   abort
  291. end
  292.  
  293. on travellingCross
  294.   --goes to "Traveling" if you are not already in the correct movie 
  295.   --and gWhatmovie is the movie you want to go to
  296.   TurnOffPuppets
  297.   go to frame "travelling" of movie gWhatMovie
  298.   abort
  299. end
  300.  
  301. on Superstitions
  302.   --goes to "Superstitions" if you are already in the correct movie 
  303.   TurnOffPuppets
  304.   go "Superstitions"
  305.   abort
  306. end
  307.  
  308. on SuperstitionsCross
  309.   --goes to "Superstitions" if you are not already in the correct movie 
  310.   --and gWhatmovie is the movie you want to go to
  311.   TurnOffPuppets
  312.   go to frame "Superstitions" of movie gWhatMovie
  313.   abort
  314. end
  315.  
  316. on Women
  317.   --goes to "Women in Society" if you are already in the correct movie 
  318.   TurnOffPuppets
  319.   go "Women"
  320.   abort
  321. end
  322.  
  323. on WomenCross
  324.   --goes to "Superstitions" if you are not already in the correct movie 
  325.   --and gWhatmovie is the movie you want to go to
  326.   TurnOffPuppets
  327.   go to frame "Women" of movie gWhatMovie
  328.   abort
  329. end
  330.  
  331. on Clothes
  332.   --goes to "Your Clothes" or "Clothes" if you are already in the correct movie 
  333.   TurnOffPuppets
  334.   go "Clothes"
  335.   abort
  336. end
  337.  
  338. on ClothesCross
  339.   --goes to "Your Clothes" or "Clothes" if you are not already in the correct movie 
  340.   --and gWhatmovie is the movie you want to go to
  341.   TurnOffPuppets
  342.   go to frame "Clothes" of movie gWhatMovie
  343.   abort
  344. end
  345.  
  346. on Workshops
  347.   --goes to "Workshops" or "Crafts" if you are already in the correct movie 
  348.   TurnOffPuppets
  349.   go "Workshops"
  350.   abort
  351. end
  352.  
  353. on WorkshopsCross
  354.   --goes to "Workshops" or "Crafts" if you are not already in the correct movie 
  355.   --and gWhatmovie is the movie you want to go to
  356.   TurnOffPuppets
  357.   go to frame "Workshops" of movie gWhatMovie
  358.   abort
  359. end
  360.  
  361. on TheGods
  362.   --goes to "The Gods" or "Religion" or "Your Beliefs" if you are already in the correct movie 
  363.   TurnOffPuppets
  364.   go "TheGods"
  365.   abort
  366. end
  367.  
  368. on TheGodsCross
  369.   --goes to "The Gods" or "Religion" or "Your Beliefs" if you are not already in the correct movie 
  370.   --and gWhatmovie is the movie you want to go to
  371.   TurnOffPuppets
  372.   go to frame "TheGods" of movie gWhatMovie
  373.   abort
  374. end
  375.  
  376. on Mummifications
  377.   --goes to "Cradle to Grave"  or "Mummifications" if you are already in the correct movie 
  378.   TurnOffPuppets
  379.   go "Mummifications"
  380.   abort
  381. end
  382.  
  383. on MummificationsCross
  384.   --goes to "Cradle to Grave"  or "Mummifications" if you are not already in the correct movie 
  385.   --and gWhatmovie is the movie you want to go to
  386.   TurnOffPuppets
  387.   go to frame "Mummifications" of movie gWhatMovie
  388.   abort
  389. end
  390.  
  391. on MeasuringTime
  392.   --goes to "MeasuringTime" if you arealready in the correct movie 
  393.   TurnOffPuppets
  394.   go "MeasuringTime"
  395.   abort
  396. end
  397.  
  398. on MeasuringTimeCross
  399.   --goes to "MeasuringTime" if you are not already in the correct movie 
  400.   --and gWhatmovie is the movie you want to go to
  401.   TurnOffPuppets
  402.   go to frame "MeasuringTime" of movie gWhatMovie
  403.   abort
  404. end
  405.  
  406. on Market
  407.   --goes to "At the Market" or "Merchants" if you are already in the correct movie 
  408.   TurnOffPuppets
  409.   go "Market"
  410.   abort
  411. end
  412.  
  413. on MarketCross
  414.   --goes to "At the Market" or "Merchants" if you are not already in the correct movie 
  415.   --and gWhatmovie is the movie you want to go to
  416.   TurnOffPuppets
  417.   go to frame "Market" of movie gWhatMovie
  418.   abort
  419. end
  420.  
  421. on EndOfEmpire
  422.   --goes to "End of the Empire" if you are already in the correct movie 
  423.   TurnOffPuppets
  424.   go "EndOfEmpire"
  425.   abort
  426. end
  427.  
  428. on EndOfEmpireCross
  429.   --goes to "End of the Empire" if you are not already in the correct movie 
  430.   --and gWhatmovie is the movie you want to go to
  431.   TurnOffPuppets
  432.   go to frame "EndOfEmpire" of movie gWhatMovie
  433.   abort
  434. end
  435.  
  436. on Wars
  437.   --goes to "Wars" if you are already in the correct movie 
  438.   TurnOffPuppets
  439.   go "Wars"
  440.   abort
  441. end
  442.  
  443. on WarsCross
  444.   --goes to "Wars" if you are not already in the correct movie 
  445.   --and gWhatmovie is the movie you want to go to
  446.   TurnOffPuppets
  447.   go to frame "Wars" of movie gWhatMovie
  448.   abort
  449. end
  450.  
  451. on YourPlace
  452.   --goes to "Your Place In Society" if you are already in the correct movie 
  453.   TurnOffPuppets
  454.   go "YourPlace"
  455.   abort
  456. end
  457.  
  458. on YourPlaceCross
  459.   --goes to "Your Place In Society" if you are not already in the correct movie 
  460.   --and gWhatmovie is the movie you want to go to
  461.   TurnOffPuppets
  462.   go to frame "YourPlace" of movie gWhatMovie
  463.   abort
  464. end
  465.  
  466. on EMap
  467.   --goes to Egypt Map Movie
  468.   TurnOffPuppets
  469.   go movie "EMap"
  470.   abort
  471. end
  472.  
  473. on AMap
  474.   --goes to Aztec Map Movie
  475.   TurnOffPuppets
  476.   go movie "AMap"
  477.   abort
  478. end
  479.  
  480. on VMap
  481.   --goes to Viking Map Movie
  482.   TurnOffPuppets
  483.   go movie "VMap"
  484.   abort
  485. end
  486.  
  487. on VTime
  488.   --goes to Viking Timeline Movie
  489.   TurnOffPuppets
  490.   go movie "VTime"
  491.   abort
  492. end
  493.  
  494. on ATime
  495.   --goes to Egypt Timeline Movie
  496.   TurnOffPuppets
  497.   go movie "ATime"
  498.   abort
  499. end
  500.  
  501. on ETime
  502.   --goes to Egypt Timeline Movie
  503.   TurnOffPuppets
  504.   go movie "ETime"
  505.   abort
  506. end
  507.  
  508. on HowDoWeKnow
  509.   --goes to "HowDoWeKnow" if you are already in the correct movie
  510.   if gNewmarker = "HowDoWeKnow" then
  511.     nothing
  512.   else
  513.     TurnOffPuppets
  514.     go "HowDoWeKnow"
  515.     abort
  516.   end if
  517. end
  518.  
  519. on HowDoWeKnowCross
  520.   --goes to "How Do We Know" if you are not already in the correct movie 
  521.   --and gWhatmovie is the movie you want to go to
  522.   TurnOffPuppets
  523.   go to frame "HowDoWeKnow" of movie gWhatMovie
  524.   abort
  525. end
  526.  
  527. on StartWorld
  528.   --goes to "Opening Frame Intro" if you are already in the correct movie 
  529.   TurnOffPuppets
  530.   go "StartWorld"
  531.   abort
  532. end
  533.  
  534. on StartWorldCross
  535.   TurnOffPuppets
  536.   go movie gWhatMovie
  537. end
  538.  
  539. on DoNothing
  540.   nothing
  541. end
  542.  
  543.  
  544.